<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="./css/index.css">
    <title>选项卡</title>
</head>
<body>
    <div id="app">
        <div class="tab">
            <div class="header">
                <div class="header_login">
                    <span class="header_login_bar"></span>
                    <div class="header_login_con">
                        <h3>选项卡</h3>
                        <a href="#">更多</a>
                    </div>
                </div>
                <div class="nav">
                    <ul>
                        <li
                         v-for="(item,index) in list" 
                         :key="item.title"
                         @click="current=index"
                         >
                            <span :class="current==index?'selet':''">{{item.title}}</span>
                        </li>
                    </ul>
                </div>
                <tabs :goods="list[current]"></tabs>
            </div>
            
        </div>
    </div>
    <template id="temp">
        <div>
            <ul class="tab">
                <li 
                v-for="(item,index) in goods.con"
                :key="item.price"
                 >
                <div class="left-info">
                    <img :src="item.img" alt="">
                    <div class="info">
                        <h3>{{item.text}}</h3>
                        <p>{{item.price}}</p>
                    </div>
                </div>
                <div class="right-info">
                    {{item.describe}}
                </div>
                </li>
            </ul>
        </div>
    </template>
</body>
<script src='../js/vue.js'></script>
<script src="./js/data.js"></script>
<script src="./js/index.js"></script>
</html>